package com.dk.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_staging")
@ApiModel(value="TStaging对象", description="")
public class TStaging implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "付款时长(1为零首付18期, 2为12期, 3为24期, 4为36期)")
    private Integer paymentTime;

    @ApiModelProperty(value = "分期:1 ,分期  2,不分期")
    private String staging;

    @ApiModelProperty(value = "付款类型(1为贷款, 2为不贷款)")
    private String whetherLoan;

    @ApiModelProperty(value = "车的金额")
    private BigDecimal money;

    @ApiModelProperty(value = "贷款金额")
    private BigDecimal loanAmount;

    @ApiModelProperty(value = "利息百分比")
    private String interest;

    @ApiModelProperty(value = "实付金额")
    private BigDecimal actualAmount;

    @ApiModelProperty(value = "用户id")
    private String adminId;

    @ApiModelProperty(value = "应付金额")
    private BigDecimal mountsPayable;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleted;

    @ApiModelProperty(value = "版本")
    private Integer version;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
